package qc.module.platform.api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@ComponentScan({"qc.module.platform.service"})//不扫描service在controller中找不到对应的service
@ComponentScan({"qc.module.platform.api.controller"})//不扫描controller从gateway找不到对应的微服务
@ComponentScan({"qc.common.core"})
@MapperScan("qc.module.platform.repository")//不扫描repository在service中找不到对应的repository
@EnableSwagger2
public class PlatformApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(PlatformApiApplication.class, args);
    }
}
